#!/bin/sh
cp interfaces /etc/network/interfaces

rm   		-r  /home/root/all_flash   
rm   		/home/root/zynq_power_app.sh  

sleep 2

#cp /home/root/03_bus_communication_module/fpga/system.bit /run/media/mmcblk1p1/system.bit
cd /home/root/03_bus_communication_module/all_embedded_flash
cp   		-r   all_flash  /home/root/ 
cp   		zynq_power_app.sh  /home/root 
sleep 1

mkdir 		-p /home/root/usr_log
mkdir 		-p /home/root/usr_data

cd /home/root/
rm -r 03_bus_communication_module

echo " "
echo " "
echo "finish linux app setup"
sleep 5
sync;sync;sync;
reboot

